extends CanvasLayer
@onready var coin_label = $HBoxContainer/CoinLabel
@onready var pause_menu = $PauseMenu
func _ready():
	Global.connect("coins_change",Callable(self,"_on_coins_change"))
	refresh_coin_label()
	
func _on_coins_change():
	refresh_coin_label()

func refresh_coin_label():
	coin_label.set_text(str(Global.get_coins()))


func _on_pause_button_pressed():
	pause_menu.show_menu()

